﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Network;

namespace NetworkIndexer.Core.Service.Concrete
{
    public class ShareService : IShareService
    {
        /// <summary>
        /// Gets the shares of a computer given its name
        /// </summary>
        /// <param name="computer">Ip address of computer</param>
        /// <returns>collection of shares</returns>
        public ShareCollection GetShares(string computer)
        {
            try
            {
                return Network.ShareCollection.GetShares(computer);
            }
            catch
            {                
                throw;
            }
        }
    }
}
